package net.lcheng.service;

import net.lcheng.commons.utils.PageList;
import net.lcheng.model.PCategoryAttribute;

/**
 * Created by LV on 2016/6/27.
 */

public interface CategoryAttributeService {

    //添加属性
    int addAttribute(PCategoryAttribute PCategoryAttribute);

    //根据CategoryId查找所有的分类属性
    PageList<PCategoryAttribute> findAllCategoryAttributeByCategoryId(String categoryId,int pageIndex,int pageSize);

    //由主键查询分类属性
    PCategoryAttribute findCategoryAttributeByPrimaryId(String attributeId);

    //修改分类属性
    int updateCategoryAttributeByPrimaryId(PCategoryAttribute attribute);

    //删除分类属性
    int deleteCategoryAttributeByPrimaryId(String attributeId);


}
